export default function history() {
  const search: string = location.search;
  const urlSearchParams = new URLSearchParams(search);
  const query: any = {};
  [...urlSearchParams.entries()].forEach((item) => {
    query[item[0]] = item[1];
  });
  console.log(query);

  return query;
}
